<template>
  <div id="app">
    <a-spin :spinning="loading" :tip="loadingText">
      <a-config-provider :locale="locale">
        <router-view />
      </a-config-provider>
    </a-spin>
  </div>
</template>
<script>
import { mapGetters } from 'vuex';
import zhCN from 'ant-design-vue/lib/locale-provider/zh_CN';
export default {
  data() {
    return {
      locale: zhCN,
    };
  },
  computed: {
    ...mapGetters(['loading', 'loadingText']),
  },
};
</script>
